import request from '@/utils/request'
export const submit=(data)=>request.post('/order',data)

export const getAll=()=>request.get('/order/all')

export const getNoPaid=()=>request.get('/order/noPaid')

export const getProcessed= ()=>request.get('/order/processed')

export const getCanceled=()=>request.get('/order/canceled')

export const pay=(data)=>request.put('/order/pay',data)

export const cancelPay=(id)=>request.put(`/order/cancelPay?id=${id}`)
